package com.ibr.ticketmanagement.app.data;

import android.content.ContentValues;

import com.ibr.ticketmanagement.app.util.DatabaseHandler;

/**
 * Created by Girishn on 5/28/2014.
 */
public class Part {
    private long _id;
    private String partId;
    private String part;

    public Part(long id, String partId, String part) {
        this._id = id;
        this.partId = partId;
        this.part = part;
    }

    public Part(String partId, String part) {
        this.partId = partId;
        this.part = part;
    }

    public long get_id() {
        return _id;
    }

    public void set_id(long _id) {
        this._id = _id;
    }

    public String getPartId() {
        return partId;
    }

    public void setPartId(String partId) {
        this.partId = partId;
    }

    public String getPart() {
        return part;
    }

    public void setPart(String part) {
        this.part = part;
    }

    public ContentValues getContentValues() {
        ContentValues values = new ContentValues();
        values.put(DatabaseHandler.KEY_PART_PART_ID, getPartId());
        values.put(DatabaseHandler.KEY_PART_NAME, getPart());
        return values;
    }
}
